package com.beichuan_travel.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class LoginDTO {

    /**
     * 前后端交互的凭证
     * */
    @NotBlank(message = "code不能为空")
    private String code;

    @NotBlank(message = "昵称不能为空")
    private String nickName;

    private String avatarUrl;

    @Min(value = 0, message = "请输入合法性别")
    @Max(value = 1, message = "请输入合法性别")
    private int gender;

    private String province;

    private String city;
}
